// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_PRODUCT_PRICE_HISTORY
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstProductPriceHistoryTable : TableInfo
    {
		public const string C_TableName = "MST_PRODUCT_PRICE_HISTORY";
		
		public const string C_HISTORY_ID = "HISTORY_ID";
		public const string C_PRODUCT_ID = "PRODUCT_ID";
		public const string C_SUPPLIER_ID = "SUPPLIER_ID";
		public const string C_PRICE = "PRICE";
		public const string C_UPDATE_PRICE_DATE = "UPDATE_PRICE_DATE";
		public const string C_UPDATE_PRICE_USER = "UPDATE_PRICE_USER";
		public const string C_REMARK = "REMARK";
		
		public MstProductPriceHistoryTable()
        {
            _tableName = "MST_PRODUCT_PRICE_HISTORY";
        }
		
		protected static MstProductPriceHistoryTable _current;
        public static MstProductPriceHistoryTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstProductPriceHistoryTable();

            _current.Add(C_HISTORY_ID, new ColumnInfo(C_HISTORY_ID,"HistoryId", true, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID,"ProductId", false, typeof(string)));
            _current.Add(C_SUPPLIER_ID, new ColumnInfo(C_SUPPLIER_ID,"SupplierId", false, typeof(string)));
            _current.Add(C_PRICE, new ColumnInfo(C_PRICE,"Price", false, typeof(decimal)));
            _current.Add(C_UPDATE_PRICE_DATE, new ColumnInfo(C_UPDATE_PRICE_DATE,"UpdatePriceDate", false, typeof(DateTime)));
            _current.Add(C_UPDATE_PRICE_USER, new ColumnInfo(C_UPDATE_PRICE_USER,"UpdatePriceUser", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
			
		}
		
		public ColumnInfo HISTORY_ID
        {
            get { return this[C_HISTORY_ID]; }
        }
		
		public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }
		
		public ColumnInfo SUPPLIER_ID
        {
            get { return this[C_SUPPLIER_ID]; }
        }
		
		public ColumnInfo PRICE
        {
            get { return this[C_PRICE]; }
        }
		
		public ColumnInfo UPDATE_PRICE_DATE
        {
            get { return this[C_UPDATE_PRICE_DATE]; }
        }
		
		public ColumnInfo UPDATE_PRICE_USER
        {
            get { return this[C_UPDATE_PRICE_USER]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		
		
	}
}

